
/*
###############################################################################################
#                                                                                             # 
# The Page is the master template of the Site.This Page contain the layout for whole site     #
# contains all the General Information about the User. This Page is  created at               #
#                                                                                             #
#     Author : Sharvan Kumar                                                                  #
#     Dated  : 21-Feb-2006                                                                    #
#                                                                                             #
###############################################################################################
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// Main class for page source
/// </summary>
public partial class rssMaster : System.Web.UI.MasterPage
{
   localFunction lfunc = new localFunction();
   public string descriptionContent = "";
   public string keywordsContent = "";
   public string titleContent = "FindaDoc.com";
    protected void Page_Load(object sender, EventArgs e)
    {
     

            if (lfunc.checkUserLogin(false))
            {
                lnk_log.Text = "Logout";
            }
            else
            {
                lnk_log.Text = "Login";
            }
     

    }

    protected void lnk_log_Click(object sender, EventArgs e)
    {
        if (lnk_log.Text.ToLower() == "login")
            Response.Redirect(Session["strHttp"] + "default.aspx");
        else
        {
            lfunc.RemoveCookie(localFunction.DOCTORCOOKIE);
            lfunc.RemoveCookie(localFunction.PATIENTCOOKIE);
            lfunc.logOffUser();
            lnk_log.Text = "login";
        }
    }
}
